package cbsc.cha4;

import cbsc.cha3.*;
public class OBTester {
	public static void main(String[] args) {
		System.out.println("----- testing binary operation bases -----");
		
		BinaryOperationBase opb = new BinaryOperationBase();
		System.out.println("1. display addition base ");
		System.out.println("2. display substract base ");
		System.out.println("3. display operation base ");
		opb.displayBase(opb.getAdditionBase());
		opb.displayFullBase(opb.getSubstractBase());
		opb.displayFullBase(opb.getOperationBase());
		
	   
		System.out.println("4. generate add exercise ");
		Exercise_3_2_3 anExercise;
		anExercise= opb.generateAdditionExercise(30);
		anExercise.formattedDisplay(5);
		
		System.out.println("5. generate sub exercise ");
		anExercise= opb.generateSubstractExercise(42);
		anExercise.formattedDisplay(5);
		
		System.out.println("6. generate mixed exercise ");
		
		anExercise= opb.generateExercise(40);
		anExercise.formattedDisplay(4);
		
		System.out.println("7. save addition base ");
		opb.saveCSVBase(opb.getAdditionBase(), "addition");
		
		System.out.println("8. save substract base ");
		opb.saveCSVBase(opb.getSubstractBase(), "substract");
		
		System.out.println("9. save operation base ");
		opb.saveCSVBase(opb.getOperationBase(), "operation");
		
		
		
	}

}
